import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity('character_setting')
export class CharacterSetting {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ length: 100 })
  name: string;

  @Column({ nullable: true })
  age: number;

  @Column({ length: 10, nullable: true })
  gender: string;

  @Column({ type: 'text', nullable: true })
  personality: string;

  @Column({ type: 'text', nullable: true })
  background: string;

  @Column({ type: 'text', nullable: true })
  hobbies: string;

  @Column({ type: 'text', nullable: true })
  appearance: string;

  @Column({ type: 'text', nullable: true })
  voiceStyle: string;

  @Column({ nullable: true })
  voiceToneId: number;

  @Column({ default: false })
  isVip: boolean;

  @Column({ name: 'priority', default: 0 })
  priority: number;

  @CreateDateColumn({ name: 'createdAt' })
  createdAt: Date;

  @UpdateDateColumn({ name: 'updatedAt' })
  updatedAt: Date;
} 